package com.oracle.zebrafreelytraveling.ui.adapter;

import android.content.Context;

import com.amap.api.services.help.Tip;
import com.oracle.zebrafreelytraveling.R;
import com.oracle.zebrafreelytraveling.ui.BaseRecycleAdapter.CommonAdapter;
import com.oracle.zebrafreelytraveling.ui.BaseRecycleAdapter.base.ViewHolder;

import java.util.List;

/**
 * Created by yydcnjjw on 2017/7/31.
 */

public class PoiSearchRecycleAdapter extends CommonAdapter<Tip> {

    public PoiSearchRecycleAdapter(Context context, int layoutId, List<Tip> datas) {
        super(context, layoutId, datas);
    }

    @Override
    protected void convert(ViewHolder holder, Tip tip, int position) {
        holder.setText(R.id.poi_search_info, tip.getName());
    }
}
